package com.bella.myrule;/**
 * @program: cloud2022
 * @description:
 * @packagename: com.bella.myrule
 * @author: Bella白
 * @date: 2022-09-01 22:50
 **/

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author: bella白
 * @Title: MYSelfRule
 * @ProjectName: cloud2022
 * @Description:
 * @date: 2022/9/1 22:50
 */
@Configuration
public class MYSelfRule {
    @Bean
    public IRule myRule(){
        return new RandomRule();//定义随机
    }
}
